home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 30 / Amiga Format AFCD30 (Sep 1998, Issue 114).iso / -screenplay- / hd_installers / supercars / install-supercars < prev    next >
Text File  |  1998-06-18  |  2KB  |  88 lines

  1. ; Installer generated by installjst v1.0, a script by JF Fabre
  2. ; Command line: installjst Supercars supercars supercars Supercars disk2filehd Supercars
  3. (set GameDir "Supercars")
  4.  
  5. ;try to figure out a place where the user usually installs his games
  6. (if (exists "Games:" (noreq) )
  7.     (set @default-dest "Games:")
  8.     (if (exists "SYS:Games" (noreq) )
  9.         (set @default-dest "SYS:Games")
  10.         (if (exists "Work:Games" (noreq) )
  11.             (set @default-dest "Work:Games")
  12.             (if (exists "JEUX:" (noreq) )
  13.                (set @default-dest "JEUX:")
  14.                (set @default-dest "SYS:")
  15.             )
  16.         )
  17.     )
  18. )
  19. (set #dest
  20.      (tackon (askdir (prompt "Where would you like " @app-name " installed?\n"
  21.                              "A drawer called " GameDir " will be created.")
  22.                      (help @askdir-help)
  23.                      (default @default-dest)
  24.                      (newpath)
  25.              )
  26.      GameDir
  27.      )
  28. )
  29.  
  30. (set @default-dest #dest)
  31.  
  32. (message "\n\n\nThis loader needs the JST program (NOT INCLUDED)\n to be copied in your path\n\n(if you don't have it already)\n\nJST is available from aminet (game/patch) or on my site\n\nhttp://www.ensica.fr/~jffabre/patches.html")
  33.  
  34. (set #CI_unit
  35.     (askchoice
  36.         (prompt "From which disk unit do you want\nto install the game")
  37.         (help    @askoptions-help)
  38.         (choices
  39.            "DF0:"
  40.            "DF1:"
  41.            "DF2:"
  42.            "DF3:"
  43.         )
  44.     )
  45. )
  46.  
  47. (set #CI_drive ("DF%ld:" #CI_unit))
  48.  
  49.  
  50. (makedir @default-dest
  51.     (help @makedir-help)
  52.     (infos)
  53. )
  54.  
  55. ;----------------------------
  56.  
  57. (copyfiles
  58.     (help @copyfiles-help)
  59.     (source "SupercarsHD")
  60.     (dest @default-dest)
  61.     (infos)
  62. )
  63.  
  64. (copyfiles
  65.     (help @copyfiles-help)
  66.     (source "supercarshd.readme")
  67.     (dest @default-dest)
  68.     (infos)
  69. )
  70.  
  71.  
  72. (message ("\nInsert %s disk 1 into drive %s !" @app-name #CI_drive))
  73.     (if
  74.         (= 0 (run ("grem2file %ld %s 2 157 >con:10/10/400/200//CLOSE/WAIT" #CI_unit (tackon @default-dest "supercars.d1") )))
  75.         ("")
  76.         (abort "\"grem2file\" must be in your PATH !")
  77.     )
  78.  
  79. (message ("\nInsert %s disk 2 into drive %s !" @app-name #CI_drive))
  80.     (if
  81.         (= 0 (run ("grem2file %ld %s 0 159 >con:10/10/400/200//CLOSE/WAIT" #CI_unit (tackon @default-dest "supercars.d2") )))
  82.         ("")
  83.         (abort "\"grem2file\" must be in your PATH !")
  84.     )
  85.  
  86.